package com.mzj.saas.mservice.params.mapper;

import com.mzj.saas.mservice.params.vo.SystemParamVO;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;


public class SystemParamRowMapper implements RowMapper<SystemParamVO> {

	@Override
	public SystemParamVO mapRow(ResultSet rs, int rowNum) throws SQLException {
		SystemParamVO vo = new SystemParamVO();
		vo.setId(rs.getLong("id"));
		vo.setParamName(rs.getString("param_name"));
		vo.setParamValue(rs.getString("param_value"));
		vo.setDescription(rs.getString("description"));
		return vo;
	}

}
